import request from '@/utils/request.js'

export default{

  //1、条件分页课程查询的方法
  getCourseList(page, limit, searchObj){
    return request({
      url: `/eduservice/coursefront/getFrontCourseList/${page}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },

  //2、查询所有分类的方法
  getAllSubject(){
    return request({
      url: '/eduservice/subject/getAllSubject',
      method: 'get'
    })
  },
  
  //3、课程方法
  getCourseInfo(id){
    return request({
      url: '/eduservice/coursefront/getFrontCourseInfo/' + id,
      method: 'get'
    })
  }

}
